package com.ship.boats.service.impl;

import cn.hutool.json.JSONUtil;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ship.boats.domain.SpBoatsIhsInspectionsCertificates;
import com.ship.boats.mapper.SpBoatsIhsInspectionsCertificatesMapper;
import com.ship.boats.service.SpBoatsIhsInspectionsCertificatesService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <b>SpBoatsIhsInspectionsCertificatesServiceImpl</b>
 *
 * @description: SpBoatsIhsInspectionsCertificatesServiceImpl <br>
 * @date: 2024/3/26 16:52 <br>
 * @author: lhm <br>
 * @version: 1.0 <br>
 */

@Service
public class SpBoatsIhsInspectionsCertificatesServiceImpl extends ServiceImpl<SpBoatsIhsInspectionsCertificatesMapper,SpBoatsIhsInspectionsCertificates> implements SpBoatsIhsInspectionsCertificatesService {
    private static final Logger logger = LoggerFactory.getLogger(SpBoatsIhsInspectionsCertificatesServiceImpl.class);

    @Autowired
    private SpBoatsIhsInspectionsCertificatesMapper spBoatsIhsInspectionsCertificatesMapper;


    @Override
    public boolean createInspectionsCertificates(List<SpBoatsIhsInspectionsCertificates> inspectionsCertificatesList) {
        logger.info("批量保存psc检查证书列表:{}"+ JSONUtil.parse(inspectionsCertificatesList));
        boolean b = saveBatch(inspectionsCertificatesList);
        return b;
    }
}
